package com.example.demo.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author: zhuchunfeng
 * @Description
 * @Date: 2020/5/13 18:51
 * Copyright (c) 2019 北京新媒传信科技有限公司
 */
@Getter
@Setter
@ApiModel("用户账号基本信息")
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.ALWAYS)
public class UserInfoDto {

    @ApiModelProperty("16位用户编号")
    private String userCode;

    @ApiModelProperty("unionId")
    @NotNull(message = "unionid不能为空")
    private String unionId;

    @ApiModelProperty("账户余额 单位分")
    @NotNull
    private Integer balance;

    @ApiModelProperty("是否新注册用户 1是 0否")
    private Integer newAccount;
}